package com.xjlsoft.weather.mapper;

import com.xjlsoft.weather.entity.QueryLog;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 数据请求日志表 Mapper 接口
 * </p>
 *
 * @author zhangbanglong
 * @since 2020-07-23
 */
@Mapper
public interface QueryLogMapper extends BaseMapper<QueryLog> {

	
	public List<Date> getMaxTimerangeEnd(@Param("requestApiId") String requestApiId,@Param("requestDataStatus") String requestStatus);
	
	public List<QueryLog> getQueryLogByMap(@Param("requestApiId") String requestApiId,@Param("requestDataStatus") String requestStatus,@Param("timerangeEnd") String timerangeEnd);
	
	/**
	 *  查询 总数  
	 * */
	public int getCountByStatusAndId(@Param("requestApiId") String requestApiId,@Param("requestDataStatus") String requestStatus);
	
	
	/**
	 * 查询高空定时值  最新的发送时间 成功的
	 * */
	public List<Date> getMaxTimes(@Param("requestApiId") String requestApiId,@Param("requestDataStatus") String requestStatus);
	
	
	public List<QueryLog> getQueryLogByadt(@Param("requestApiId") String requestApiId,@Param("requestDataStatus") String requestStatus,@Param("times") String times);
}